package cn.yma.bus.test;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;

@SpringBootTest
class RedisMessage {

    @Autowired
    RedisTemplate<String,String> redisTemplate;

    @Test
    void push(){
        redisTemplate.convertAndSend("test","test-msg");
    }

}
